package com.turing.post.cardmanagement.util;

import java.math.BigInteger;
import java.util.List;

import javax.ejb.Local;
import javax.ejb.Remote;

import com.turing.post.util.PCPSApplicationException;

/**
 * 临时领卡\缴回单明细 Dao接口
 * 
 * @author kangzhe
 * 
 */
@Remote
@Local
public interface SalesGetCardOrderDetailDao {
	/**
	 * 新增临时领卡\缴回单明细
	 * 
	 * @param sgco
	 */
	public void add(SalesGetCardOrderDetail sgcod)
			throws PCPSApplicationException;

	/**
	 * 修改临时领卡\缴回单明细
	 * 
	 * @param sgco
	 */
	public void update(SalesGetCardOrderDetail sgcod)
			throws PCPSApplicationException;

	/**
	 * 根据主键获取临时领卡\缴回单明细
	 * 
	 * @param salesGetCardOrderId
	 * @param orderItemSeqNo
	 * @return
	 */
	public SalesGetCardOrderDetail getInfoByDetailId(
			BigInteger salesGetCardOrderId, Integer orderItemSeqNo);

	/**
	 * 根据业务单号获取明细列表
	 * @param salesGetCardOrderId
	 * @return
	 */
	public List<SalesGetCardOrderDetail> getSalesGetCardOrderDetailList(
			BigInteger salesGetCardOrderId);
}
